function showCountryForEnrollincludeTop() {

			var obj = {

				actionUrl : "http://www.job361.com:80/cn/enroll/getCountryJsonAgency.action", //ajax要去调用的action

				inputLabel : "pop2_includeTop", //input标签的id

				hiddenLabel : "hidden2_includeTop", //hidden标签的id

				alertNum : "5", //最多可以选几项   

				hintTitle : "最想去的国家", //弹出层标题

				selectedTitle : "已选国家", //已选项的标题

				confirmFunction : function() {

					checkNotNull(document.getElementById("hidden2_includeTop"),
							'country_includeTop', '该项目必须填写', '');

					if (document.getElementById("pop2_includeTop").value == "") {

						document.getElementById("pop2_includeTop").value = "选择/修改";

					}

				}

			};

			popupChannelAgency(obj); //这是要去调用popAgency.js文件中的popupChannelAgency()方法

		}

		function showIndustryForEnrollincludeTop() {

			var obj = {

				actionUrl : "http://www.job361.com:80/cn/enroll/getIndustryJsonAgency.action", //ajax要去调用的action

				inputLabel : "pop1_includeTop", //input标签的id

				hiddenLabel : "hidden1_includeTop", //hidden标签的id

				alertNum : "3", //最多可以选几项   

				hintTitle : "想从事的行业", //弹出层标题

				selectedTitle : "已选行业", //已选项的标题

				confirmFunction : function() {

					checkNotNull(document.getElementById("hidden1_includeTop"),
							'industry_includeTop', '该项目必须填写', '');

					if (document.getElementById("pop1_includeTop").value == "") {

						document.getElementById("pop1_includeTop").value = "选择/修改";

					}

				}

			};

			popupChannelAgency(obj); //这是要去调用popAgency.js文件中的popupChannelAgency()方法

		}

		function showEnrollLayerincludeTop() {

			var obj = {

				title : "我要报名",

				innerDivId : 'enrollLayerincludeTop',

				zIndex : 2500,

				top : 30

			};

			createPageLayer(obj);

		}

		//提交前的验证函数

		function checkFormForEnrollincludeTop() {

			var checkFlag = true;

			var focusFlag = true;

			if (!checkNotNullAndSize(document
					.getElementById('full_name_check_includeTop'),
					'full_name_includeTop', 50, '该项目必须填写', '该项目长度应在50字以内', '')) {

				checkFlag = false;

				if (focusFlag == true) {//姓名

					document.getElementById('full_name_check_includeTop')
							.focus();

					document.getElementById('full_name_check_includeTop')
							.select();

					focusFlag = false;

				}

			}

			if (!checkNotNullAndIsMobile(document
					.getElementById('mobile_check_includeTop'),
					'mobile_includeTop', '手机号格式不正确', '该项目必须填写', '请输入常用手机号')) {

				checkFlag = false;

				if (focusFlag == true) {//手机号 不为空

					document.getElementById('mobile_check_includeTop').focus();

					document.getElementById('mobile_check_includeTop').select();

					focusFlag = false;

				}

			}

			if (!checkIsMobile(document
					.getElementById('mobile_bak_check_includeTop'),
					'mobile_bak_includeTop', '手机号格式不正确', '请输入紧急联系人手机号')) {

				checkFlag = false;

				if (focusFlag == true) {//手机号 不为空

					document.getElementById('mobile_bak_check_includeTop')
							.focus();

					document.getElementById('mobile_bak_check_includeTop')
							.select();

					focusFlag = false;

				}

			}

			if (!checkSize(document.getElementById('phone_check_includeTop'),
					'phone_includeTop', 50, '该项目长度应在50字以内', '如+86-24-12345678')) {

				checkFlag = false;

				if (focusFlag == true) {//固定电话

					document.getElementById('phone_check_includeTop').focus();

					document.getElementById('phone_check_includeTop').select();

					focusFlag = false;

				}

			}

			if (!checkIsEmail(
					document.getElementById('email_check_includeTop'),
					'email_includeTop', '电子邮件格式不正确', '请输入正确的电子邮件', 50,
					'该项目长度应在50字以内')) {

				checkFlag = false;

				if (focusFlag == true) {//电子邮件

					document.getElementById('email_check_includeTop').focus();

					document.getElementById('email_check_includeTop').select();

					focusFlag = false;

				}

			}

			if (!checkSize(document.getElementById('qq_num_check_includeTop'),
					'qq_num_includeTop', 50, '该项目长度应在50字以内', '请输入正确的QQ号')) {

				checkFlag = false;

				if (focusFlag == true) {//qq号

					document.getElementById('qq_num_check_includeTop').focus();

					document.getElementById('qq_num_check_includeTop').select();

					focusFlag = false;

				}

			}

			if (!checkNotNull(document.getElementById('hidden2_includeTop'),
					'country_includeTop', '该项目必须填写', '')) {

				checkFlag = false;

				if (focusFlag == true) {

					document.getElementById('pop2_includeTop').focus();

					focusFlag = false;

				}

			}

			if (!checkNotNull(document.getElementById('hidden1_includeTop'),
					'industry_includeTop', '该项目必须填写', '')) {

				checkFlag = false;

				if (focusFlag == true) {

					document.getElementById('pop1_includeTop').focus();

					focusFlag = false;

				}

			}

			if (!checkSize(document
					.getElementById('description_check_includeTop'),
					'description_t_includeTop', 500, '该项目长度应在500字以内',
					'长度在500字以内')) {

				checkFlag = false;

				if (focusFlag == true) {

					document.getElementById('description_check_includeTop')
							.focus();

					document.getElementById('description_check_includeTop')
							.select();

					focusFlag = false;

				}

			}

			return checkFlag;

		}

		//提交报名表单

		function submitFormForEnrollincludeTop() {

			if (!checkFormForEnrollincludeTop()) { //表单验证

				return;

			}

			function submitFormDoincludeTop() {

				var wageCheckCombo = document
						.getElementById("wage_check_includeTop");

				//使用ajax提交表单

				$
						.ajax({

							async : true,

							cache : false,

							type : "GET", //如果是跨域请求，这里即使写成POST，也会自动变成GET请求

							dataType : "jsonp",

							jsonp : "callbackParam",

							data : {//"waEnroll.fullName":encodeURI(document.getElementById("full_name_check_includeTop").value),

								"waEnroll.fullName" : document
										.getElementById("full_name_check_includeTop").value,

								"waEnroll.mobile" : document
										.getElementById("mobile_check_includeTop").value,

								"waEnroll.mobileBak" : document
										.getElementById("mobile_bak_check_includeTop").value,

								"waEnroll.phone" : document
										.getElementById("phone_check_includeTop").value,

								"waEnroll.email" : document
										.getElementById("email_check_includeTop").value,

								"waEnroll.qqNum" : document
										.getElementById("qq_num_check_includeTop").value,

								"waEnroll.country" : document
										.getElementById("hidden2_includeTop").value,

								"waEnroll.industry" : document
										.getElementById("hidden1_includeTop").value,

								"waEnroll.wage" : wageCheckCombo.options[wageCheckCombo.selectedIndex].value,

								"waEnroll.description" : document
										.getElementById("description_check_includeTop").value
							}

							,

							url : "http://www.job361.com:80/entercn/enroll/saveFrontForJobEnter.action",

							error : function(XMLHttpRequest, textStatus,
									errorThrown) { //请求失败处理函数

								//alert("提交失败！");

								//这几个参数可以打出错误类型

								alert("请求对象XMLHttpRequest: " + XMLHttpRequest);

								alert("错误类型textStatus: " + textStatus);

								alert("异常对象errorThrown: " + errorThrown);

							},

							success : function(data) { //请求成功后处理函数。

								/*

								if(data.substring(0,9) != "{success:"){

									alert("提交失败！");

									return ;

								}

								var result = eval("(" + data + ")");

								 */

								var result = data; //改为jsonp请求后，从后台传回来的data直接就是json对象，而非json字符串，所以不用eval()函数去转化了。

								if (result.success) {

									closePageLayer();

									var obj = {

										title : '提示',

										text : '报名成功'

									};

									createTipLayer(obj);

								} else {

									alert(result.msg);

									if (result.errorType) {

										if (result.errorType == "mobile"
												&& document
														.getElementById("mobile_check_includeTop")) {

											document.getElementById(
													"mobile_check_includeTop")
													.focus();

										}

									}

								}

							}

						});

			}

			submitFormDoincludeTop();

		}